package com.ruoyi.system.domain.aggregation;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 分佣比例对象 proportion
 * 
 * @author ruoyi
 * @date 2025-01-01
 */
public class Proportion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private Long id;

    /** 1、广告分佣2、异业联盟分佣3、商家固定抽成 */
    @Excel(name = "分佣类型", readConverterExp = "1=广告分佣,2=异业联盟分佣,3=商家固定抽成")
    private Integer type;

    /** 1、c端用户2、业务员3、商家4、区域代理5、总公司 */
    @Excel(name = "角色类型", readConverterExp = "1=c端用户,2=业务员,3=商家,4=区域代理,5=总公司")
    private Integer roleType;

    /** 分成比例 */
    @Excel(name = "分成比例")
    private BigDecimal proportion;

    /** 删除标志，0未删除，1删除 */
    private Integer deleted;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }

    public void setRoleType(Integer roleType) 
    {
        this.roleType = roleType;
    }

    public Integer getRoleType() 
    {
        return roleType;
    }

    public void setProportion(BigDecimal proportion) 
    {
        this.proportion = proportion;
    }

    public BigDecimal getProportion() 
    {
        return proportion;
    }

    public void setDeleted(Integer deleted) 
    {
        this.deleted = deleted;
    }

    public Integer getDeleted() 
    {
        return deleted;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("roleType", getRoleType())
            .append("proportion", getProportion())
            .append("deleted", getDeleted())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("updateTime", getUpdateTime())
            .append("updateBy", getUpdateBy())
            .toString();
    }
}

